package com.example.springboot.service;

import com.github.pagehelper.PageInfo;
import com.example.springboot.domain.PromotionAd;
import com.example.springboot.domain.PromotionAdVO;

public interface PromotionAdService {

    /*
       分页查询广告信息
    */
    public PageInfo<PromotionAd> findAllPromotionAdByPage(PromotionAdVO promotionAdVO);

    /*
         广告动态上下线
     */
    public void  updatePromotionAdStatus(int id,String status);

    //修改回显广告信息接口
    PromotionAd getPromotionAdById(int id);

    //修改广告
    void updatePromotionAd(PromotionAd promotionAd);

    //新增广告
    void addPromotionAd(PromotionAd promotionAd);

    void deletePromotionAd(int id);
}
